home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / acf540r0.zip / STRUCT.ACF < prev    next >
Text File  |  1992-01-17  |  8KB  |  224 lines

  1. /* ---------------------------------------------------------------------
  2.  
  3.                      The Auto Control File Section Door
  4.                   By Ray Cole, SysOp The Auto Control BBS
  5.                               Started 10-24-90
  6.                          Version 5.40 Specifications
  7.  
  8.  
  9.    You May Use This Header File Without Compensation In Your Own
  10.    Programs.  
  11.  
  12.  
  13.    Header: Declares All Structures
  14.  
  15.    --------------------------------------------------------------------- */
  16.  
  17.  
  18.  
  19.  
  20. /* ---------------------------------------------------------------------
  21.  
  22.                        CO Is Set If An Error Occurs.
  23.  
  24.                          1 - Exit Program
  25.                          2 - General Error (File Not Found, Etc.)
  26.                          3 - Carrier Dropped
  27.                          4 - Time Up For User
  28.                          5 - Fossil Init Failure
  29.                          6 - Mouse Driver Init Failure
  30.                          7 - Configuration Not Found
  31.                          8 - Inactivity Timeout
  32.  
  33.    --------------------------------------------------------------------- */
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. struct ACFPATH                          /* Define ACF Struct             */
  41.                                         /* There Are 260 in ACFPATH.CTL  */
  42.  
  43. {                                       /* Declare Struct                */
  44.  
  45.   char v[3];                            /* Declare reVision Char         */
  46.                                         /* This Struct is V6             */
  47.                                         /* Previously V5                 */
  48.  
  49.   char tag[3];                          /* Declare Tag                   */
  50.  
  51.   char name[40];                        /* Declare Area Name             */
  52.  
  53.   char desc[60];                        /* Declare Area Description      */
  54.  
  55.   char path[40];                        /* Declare Area Path             */
  56.  
  57.   unsigned sec;                         /* Declare Area Sec              */
  58.  
  59.   char part;                            /* Declare Partial Transfer Loc. */
  60.  
  61.   char free;                            /* Declare Free/Not Location     */
  62.  
  63.   char fbbs[60];                        /* Declare FILES.BBS Name        */
  64.  
  65.   char gif;                             /* Declare GIF Flag              */
  66.  
  67.   char dtype;                           /* Declare Fixed Drive/Not       */
  68.  
  69.   char utag[3];                         /* Declare U/L Tag               */
  70.  
  71.   short flag[4];                        /* Declare Area Required Flags   */
  72.                                         /* NOTE this is an 8-Byte Field  */
  73.  
  74.   char ft;                              /* Declare File Area Type        */
  75.  
  76.   unsigned usec;                        /* Declare U/L Sec.              */
  77.  
  78.   unsigned dsec;                        /* Declare D/L Sec.              */
  79.  
  80.   char dbase[9];                        /* Declare Database Name         */
  81.  
  82.   char nw;                              /* NewScan Search/Not 0/1=Y/N    */
  83.  
  84.   char dupe;                            /* Declare Dupe Check/Not ""     */
  85.                                                                      
  86.   char reserved[1];                     /* Declare Reserved Space        */
  87.  
  88. };                                      /* End Declare                   */
  89.  
  90. struct FILEBASE                         /* Declare Filebase Structure    */
  91.                                         /* Used For Personal Files       */
  92.                                         /* FILEBASE.ACF                  */
  93.  
  94. {                                       /* Start Declare                 */
  95.  
  96.   char file[13];                        /* Declare Filename              */
  97.  
  98.   int filar;                            /* Declare File Area             */
  99.  
  100.   char from[32];                        /* Declare From User             */
  101.  
  102.   char to[32];                          /* Declare To User               */
  103.  
  104.   int receive;                          /* Declare Received/Not Int      */
  105.  
  106.   char txt[79];                         /* Declare Short Message         */
  107.  
  108.   time_t cdate;                         /* Declare Creation Date         */
  109.  
  110.   unsigned long fs;                     /* Declare File Size             */
  111.  
  112.   char fbt;                             /* Declare Filebase Type         */
  113.  
  114.   char reserve2[123];                   /* Declare Reserved Space        */
  115.  
  116. };                                      /* End Declare                   */
  117.  
  118. struct FINDEX                           /* Declare File Index Struct     */
  119.                                         /* Used for FDB's                */
  120.  
  121. {                                       /* Start of File Index Struct    */
  122.  
  123.   char file[13];                        /* Declare Filename Slot         */
  124.  
  125.   char path[60];                        /* Declare Path To File          */
  126.                                         /* If NUL, Assume Area Path      */
  127.   unsigned long size;                   /* Declare File Size             */
  128.  
  129.   unsigned long time;                   /* Declare Time/Data Modifed     */
  130.  
  131.   unsigned int down;                    /* Declare # Times Downloaded    */
  132.  
  133.   char hide;                            /* Declare Hidden Byte           */
  134.  
  135.   char desc[13];                        /* Declare Desc. String          */
  136.  
  137.   char ul[31];                          /* Declare Reserved Space        */
  138.  
  139. };                                      /* End of File Index Struct      */
  140.  
  141.  
  142. struct RETURN                           /* Declare Return Status Struct  */
  143.                                         /* Used By RETURN.ACF            */
  144.  
  145. {                                       /* Start Define                  */
  146.  
  147.   char name[13];                        /* New Filename                  */
  148.  
  149.   char path[60];                        /* New Path                      */
  150.   
  151.   char desc[13];                        /* New Ext. Description Name     */
  152.  
  153.   char msg[80];                         /* Short Msg To User             */
  154.  
  155.   char del;                             /* File Was Deleted/Not  0/1=N/Y */
  156.                                                                  
  157.   char hide;                            /* Hide the File          ""     */
  158.  
  159.   char time;                            /* Time Compensation Ratio       */
  160.  
  161.   char cred;                            /* Credit/Not               ""   */
  162.  
  163. };                                      /* End Define                    */
  164.  
  165.  
  166.  
  167.  
  168.  
  169. /* ---------------------------------------------------------------------
  170.  
  171.                      ACFILES.CFG/PROTOCOL.CFG
  172.  
  173.  
  174.  
  175.    ACFILES.CFG
  176.  
  177.  
  178.    Line  1: BBS Name
  179.    Line  2: Ext. Desc. Path
  180.    Line  3: SysOp Security Level
  181.    Line  4: BIOS/Direct (1/2)
  182.    Line  5: Hide Files by Default on Upload (0/1)
  183.    Line  6: Inactivity Timeout in Seconds
  184.    Line  7: Upload Time Ratio default
  185.    Line  8: Auto-Download Path\Filename #1
  186.    Line  9:    SHORT Description of Line 8
  187.    Line 10: Auto-Download Path\Filename #2
  188.    Line 11:    SHORT Description of Line 10
  189.    Line 12: BBS Path Where IntraNode Messages Are Set/Limits.CTL Is
  190.    Line 13: Menu Twirl Prompt (0/1)
  191.    Line 14: On-Line Download Counter Updating (0/1)
  192.    Line 15: External ANSI Text Editor Command
  193.    Line 16: NO LONGER USED
  194.    Line 17: Free Download K Before K Ratios Take Effect
  195.    Line 18: Upload Drive Space K - Checked Before Upload
  196.    Line 19: SysOp Name
  197.    Line 20: View "U/L By" Security Level
  198.    Line 21: Forced Pre-Upload Level
  199.  
  200.  
  201.  
  202.    PROTOCOL.CFG
  203.  
  204.  
  205.    Line  1: Protocol Name
  206.    Line  2: Batch Protocol? Yes/No
  207.    Line  3: Two-Way Protocol? Yes/No
  208.    Line  4: Send Files Commmand (User Download Option)
  209.    Line  5: Receive Files Command (Uesr Upload Option)
  210.    Line  6: Log Format Line
  211.    Line  7: File Sent OK Flag
  212.    Line  8: File Received OK Flag
  213.    Line  9: Protocol's Log File - Path\Name Of Log File
  214.             Created BY THE PROTOCOL.
  215.  
  216.  
  217.    ACFNODE.CFG
  218.  
  219.    Line  1: Path to ACFPATH.CTL/ACFILES.CFG/PROTOCOL.CFG
  220.    Line  2: Node's Log File of Activity
  221.    Line  3: Node Number - Used In Detecting Intra-Nod